DioDocs for PDF
Create(RenderTarget,CompatibleRenderTargetOptions,Nullable<Size2F>,Nullable<Size2L>,Nullable<PixelFormat>) メソッド

GrapeCity.Documents.DX.Windows アセンブリ > GrapeCity.Documents.DX.Direct2D 名前空間 > BitmapRenderTarget クラス > Create メソッド : Create(RenderTarget,CompatibleRenderTargetOptions,Nullable<Size2F>,Nullable<Size2L>,Nullable<PixelFormat>) メソッド
an instance of RenderTarget
A value that specifies whether the new render target must be compatible with GDI.
The desired size of the new render target in device-independent pixels if it should be different from the original render target. For more information, see the Remarks section.
The desired size of the new render target in pixels if it should be different from the original render target. For more information, see the Remarks section.
The desired pixel format and alpha mode of the new render target. If the pixel format is set to DXGI_FORMAT_UNKNOWN, the new render target uses the same pixel format as the original render target. If the alpha mode is AlphaMode.Unknown, the alpha mode of the new render target defaults to D2D1_ALPHA_MODE_PREMULTIPLIED. For information about supported pixel formats, see {{Supported Pixel Formats and Alpha Modes}}.
Creates a bitmap render target for use during intermediate offscreen drawing that is compatible with the current render target.
シンタックス
'宣言
 
Public Overloads Shared Function Create( _
   ByVal renderTarget As RenderTarget, _
   ByVal options As CompatibleRenderTargetOptions, _
   ByVal desiredSize As System.Nullable(Of Size2F), _
   ByVal desiredPixelSize As System.Nullable(Of Size2L), _
   ByVal desiredFormat As System.Nullable(Of PixelFormat) _
) As BitmapRenderTarget
public static BitmapRenderTarget Create( 
   RenderTarget renderTarget,
   CompatibleRenderTargetOptions options,
   System.Nullable<Size2F> desiredSize,
   System.Nullable<Size2L> desiredPixelSize,
   System.Nullable<PixelFormat> desiredFormat
)

パラメータ

renderTarget
an instance of RenderTarget
options
A value that specifies whether the new render target must be compatible with GDI.
desiredSize
The desired size of the new render target in device-independent pixels if it should be different from the original render target. For more information, see the Remarks section.
desiredPixelSize
The desired size of the new render target in pixels if it should be different from the original render target. For more information, see the Remarks section.
desiredFormat
The desired pixel format and alpha mode of the new render target. If the pixel format is set to DXGI_FORMAT_UNKNOWN, the new render target uses the same pixel format as the original render target. If the alpha mode is AlphaMode.Unknown, the alpha mode of the new render target defaults to D2D1_ALPHA_MODE_PREMULTIPLIED. For information about supported pixel formats, see {{Supported Pixel Formats and Alpha Modes}}.
解説
The pixel size and DPI of the new render target can be altered by specifying values for desiredSize or desiredPixelSize: If desiredSize is specified but desiredPixelSize is not, the pixel size is computed from the desired size using the parent target DPI. If the desiredSize maps to a integer-pixel size, the DPI of the compatible render target is the same as the DPI of the parent target. If desiredSize maps to a fractional-pixel size, the pixel size is rounded up to the nearest integer and the DPI for the compatible render target is slightly higher than the DPI of the parent render target. In all cases, the coordinate (desiredSize.width, desiredSize.height) maps to the lower-right corner of the compatible render target.If the desiredPixelSize is specified and desiredSize is not, the DPI of the new render target is the same as the original render target.If both desiredSize and desiredPixelSize are specified, the DPI of the new render target is computed to account for the difference in scale.If neither desiredSize nor desiredPixelSize is specified, the new render target size and DPI match the original render target.
参照

BitmapRenderTarget クラス
BitmapRenderTarget メンバ
オーバーロード一覧